import request from '@/utils/request'
import qs from 'qs'

export const libraryQueryAll = () =>
    request({
        url: '/tjtSportsItemLibrary/all',
        method: 'get'
    })

    export const libraryQueryBYID = (id) =>
    request({
        url: '/tjtSportsItemLibrary/'+id,
        method: 'get'
    })

    export const libraryAdd = (TSportsItemLibrary) =>
    request({
        url: '/tjtSportsItemLibrary',
        method: 'post',
        data:TSportsItemLibrary
    })

    export const libraryUpd = (TSportsItemLibrary) =>
    request({
        url: '/tjtSportsItemLibrary',
        method: 'put',
        data:TSportsItemLibrary
    })
